package com.fuze.questionnaire.domain.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author sepc_
 * @date 10/20/2021 15:08
 * 用户-选项 DTO
 */
@ApiModel(value = "user_result_dto")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserResultDTO implements Serializable {
    private static final long serialVersionUID = -7537521953249826652L;

    /**
     * 问题id
     */
    @NotNull(message = "问题id不能为空")
    @ApiModelProperty(value = "问题id")
    private Integer problemId;

    /**
     * 选项结果
     */
    @NotBlank(message = "结果不能为空")
    @ApiModelProperty(value = "选项结果")
    private String optionsResult;

}